<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<html xmlns="http://www.w3.org/1999/xhtml"> 
<head>
 <base href="<%=basePath%>"></base>  
<title></title> 
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 
<meta content="noindex, nofollow" name="robots" /> 
<script src="common/fck_dialog_common.js" type="text/javascript"></script>
<script type="text/javascript"> 
var flag = false; 
var oEditor = window.parent.InnerDialogLoaded() ;  
window.onload = function() 
{ 
	document.getElementById("frmpiclist").src="admin/Resource_resNtList.action?templateid="+
	window.parent.parent.collapse.document.getElementById("templateid").value;
	document.getElementById("templateid").value=window.parent.parent.collapse.document.getElementById("templateid").value;
    window.parent.SetOkButton( true ) ; 
    window.parent.SetAutoSize( true ) ; 
} 

function Ok() 
{ 
    var oActiveEl = oEditor.FCK.EditorDocument.createElement( 'img' ) ; 
    oActiveEl.src = document.getElementById('imgurladdress').value ; 
    if(document.getElementById('imgurladdress').value.length>5){
	    oEditor.FCKUndo.SaveUndoStep() ; 
	    oActiveEl = oEditor.FCK.InsertElement( oActiveEl ) ;
    }
 
    return true ; 
}   
</script>
</head>
<body>
<form action="admin/Resource_resNtUpload.action" method="post" name="form1" enctype="multipart/form-data">
上传文件：<input name="upload" type="file" style="width:400px"/>
<s:hidden name="templateid" id="templateid"></s:hidden>
  <input type="submit" value=" 上 传 " style="border:1px solid #d8d8d8;height:18px"/>
</form>
<iframe id="frmpiclist" src="" name="frmpiclist" 
frameborder="0" width="100%" height="480px" scrolling="auto" allowtransparency="true"></iframe>

图片地址：<input id="imgurladdress" type="text" readonly="readonly" size="74"/>

</body>
</html>